//
//  BaseLabel.h
//  InTubePro
//
//  Created by seven on 2020/1/11.
//  Copyright © 2020 seven. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef enum
{
    ITVerticalAlignmentTop = 0, // default
    ITVerticalAlignmentMiddle,
    ITVerticalAlignmentBottom,
} ITVerticalAlignment;

NS_ASSUME_NONNULL_BEGIN

@interface BaseLabel : UILabel

@property (nonatomic) ITVerticalAlignment verticalAlignment;

@property (nonatomic) CGFloat topOffset;
@property (nonatomic) CGFloat leftOffset;
@property (nonatomic) CGFloat rightOffset;

@property(nonatomic, assign)BOOL supportCopyAction;

@property(nonatomic, copy)CustomAction customAction;//自定义block

- (CGSize)fitSize:(CGSize)size;
- (CGSize)fitWidth:(CGFloat)width;
- (CGSize)fitHeight:(CGFloat)height;

@end


@interface UILabel(Shadow)

- (void)setShadow;
- (void)setShadowWithColor:(UIColor *)color;
@end

NS_ASSUME_NONNULL_END
